package com.wing.res.model.request;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Objects;

/**
 * @version 1.1.0
 * @Author hz
 * @Date 2024-09-25 16:24
 **/
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class TestItemData {

    /**
     * 检查项
     */
    private String name;

    /**
     * 标准
     */
    private String standard;

    /**
     * 器具
     */
    private String utensil;

    /**
     * 方法
     */
    private String way;

    /**
     * 重要程度
     */
    private String importance;

    /**
     * 检测率
     */
    private String detectionRate;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TestItemData that = (TestItemData) o;
        return Objects.equals(name, that.name) && Objects.equals(standard, that.standard) && Objects.equals(utensil, that.utensil) && Objects.equals(way, that.way) && Objects.equals(importance, that.importance) && Objects.equals(detectionRate, that.detectionRate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, standard, utensil, way, importance, detectionRate);
    }

    @Override
    public String toString() {
        return "TestItemData{" +
                "name='" + name + '\'' +
                ", standard='" + standard + '\'' +
                ", utensil='" + utensil + '\'' +
                ", way='" + way + '\'' +
                ", importance='" + importance + '\'' +
                ", detectionRate=" + detectionRate +
                '}';
    }

    private Long creator;
    private String creatorName;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private String modifierName;
    private Long modifier;
}
